import Mock from 'mockjs'
import loginAPI from './login'
import hostAPI from './host'
import batchAPI from './batch'
import productAPI from './product'
import configAPI from './config'
import logAPI from './log'

Mock.mock(/\/api\/login/, 'post', loginAPI.loginByUsername)

Mock.mock(/\/api\/logout/, 'get', loginAPI.logout)

Mock.mock(/\/api\/hosts/, 'get', hostAPI.getAgentList)
Mock.mock(/\/api\/hosts\/compare/, 'post', hostAPI.systemCompare)

Mock.mock(/\/api\/batches/, 'get', batchAPI.getBatchList)

Mock.mock(/\/api\/standardlibs/, 'get', configAPI.getStandardLib)

Mock.mock(/\/api\/configs/, 'get', configAPI.getConfigureItem)

Mock.mock(/\api\/subscribed/, 'get', productAPI.getProductHostsAddList)
Mock.mock(/\api\/logs/, 'get', logAPI.getLogs)

Mock.mock(/api\/logs\/(.*?)\/sub/, 'get', logAPI.getLogDetail)
Mock.mock(/api\/logs\/(.*?)/, 'get', logAPI.getLogSub)
export default Mock